Skip to content

fix: add apiKeys.get + expose retryAfter on rate limit errors#36

Merged
caballeto merged 1 commit into
mainfrom
fix/api-keys-get-retry-after
Jun 11, 2026
Merged

fix: add apiKeys.get + expose retryAfter on rate limit errors#36
caballeto merged 1 commit into
mainfrom
fix/api-keys-get-retry-after

Conversation

@caballeto

Copy link
Copy Markdown
Member

Summary

  • Add apiKeys.get(id) method (the API supports GET /api/v1/api-keys/{id} but the SDK was missing this method)
  • Expose retryAfter: number | undefined on DevhelmApiError — parses the Retry-After header on 429 responses so users can implement backoff without manual header parsing

Test plan

  • npm run typecheck passes
  • npm run lint passes
  • npm test — 1354 tests passed
  • New tests: apiKeys.get exists, retryAfter parsed/absent/invalid

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@caballeto caballeto merged commit 587b842 into main Jun 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant